﻿<!DOCTYPE html>
<html>
<head>
    <title>游戏特权</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="Resource/ui-progress-bar.css" rel="stylesheet" type="text/css" />
    <link href="Resource/buttons.css" rel="stylesheet" type="text/css" />
    <link href="Resource/site.css" rel="stylesheet" type="text/css" />
    <script src="Resource/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="Resource/iscroll.js" type="text/javascript"></script>
    <script type="text/javascript">
        var history = new Array();
        var baseurl = "http://s-33994.gotocdn.com/";
        var myScroll;
        var uuid = getParameter("uuid");
        var dtype = getParameter("dtype");
        var url = getParameter("url");
        if (uuid == "") {
            uuid = "0000000000000000-000000000000000";
        }
        if (dtype == "") {
            dtype = "测试";
        }
        function getParameter(param) {
            var query = window.location.search;
            var iLen = param.length;
            var iStart = query.indexOf(param);
            if (iStart == -1)
                return "";
            iStart += iLen + 1;
            var iEnd = query.indexOf("&", iStart);
            if (iEnd == -1)
                return query.substring(iStart);
            return query.substring(iStart, iEnd);
        }
        var isLoading = false;
        function loadPage(page, isFill) {
            if (isLoading == true) {
                return false;
            }

            if (isFill == true) {
                if (page.indexOf("?") == -1) {
                    page = page + "?uuid=" + uuid + "&dtype=" + dtype;
                }
                else {
                    page = page + "&uuid=" + uuid + "&dtype=" + dtype;
                }
            }
            var menu = "";
            if (page.search("PhoneApp/Index")>=0) {
                menu = "index";
            }
            else if (page.search("PhoneApp/NewArea") >= 0) {
                menu = "newarea";
            }
            else if (page.search("PhoneApp/GameClassify") >= 0) {
                menu = "gameclassify";
            }
            else if (page.search("PhoneApp/MyCode") >= 0) {
                menu = "mycode";
            }
            if (menu != "") {
                $("li.menu").removeClass("navbar_active");
                $("li." + menu).addClass("navbar_active");
            }
            page = page.replace(/[&]/g, '*');

            page = baseurl + "PhoneApp/Jsonp?url="+page;
            
            isLoading = true;
            $('#loading_contain').show();
            $('#error_contain').hide();
            $.ajax({
                type: "get", 
                url: page,         //请求链接 
                dataType: "jsonp",
                success: function(data) {
                    if(data.Success == true)
                    {
                        setTimeout(function () {
                            isLoading = false;
                            $("#scroller").html(data.Html);
                            myScroll.refresh();
                        }, 500);
                    }
                    else
                    {
                        alert(data.Message);
                        isLoading = false;
                        $('#loading_contain').hide();
                        $('#error_contain').show();
                    }
                },
                error: function (xOptions, textStatus) {
                    isLoading = false;
                    $('#loading_contain').hidden();
                    $('#error_contain').visible();
                }
            });
        }


        function setSearch() {
            var url = baseurl + "PhoneApp/GetSearchValue";
            $.ajax({
                type: "get",  //提交方式 
                url: url,         //请求链接 
                dataType: "jsonp",
                success: function (result) {
                    if (result.search != "") {
                        $(".searchtxt").attr("value", result.search);
                    }
                }
            });
        }
        function setContent() {

            if (url == "") {
                loadPage("PhoneApp/Index", true);
            }
            else
            {
                url = url.replace(/[~]/g, '=');
                url = url.replace(/[!]/g, '?');
                url = url.replace(/[*]/g, '&');
                url = url.replace(/[|]/g, '/');

                loadPage(url, true);
            }
        }
        $(document).ready(function () {
            $('#error_contain').hide();
            setSearch();
            //setContent();

            myScroll = new iScroll('wrapper');
            myScroll.refresh();
        });

        function loadUrl(url) {
            
            url = url.replace(/[=]/g, '~');
            url = url.replace(/[?]/g, '!');
            url = url.replace(/[&]/g, '*');
            url = url.replace(/[/]/g, '|');

            window.location.href = "index.htm?uuid="+uuid+"&dtype="+dtype+"&url="+url;
        }

        function clickmenu(menu) {
            var url = "";
            if (menu == "index") {
                url = "PhoneApp/Index";
            }
            else if (menu == "newarea") {
                url = "PhoneApp/NewArea";
            }
            else if (menu == "gameclassify") {
                url = "PhoneApp/GameClassify";
            }
            else if (menu == "mycode") {
                url = "PhoneApp/MyCode";
            }

            if (loadPage(url, true) != false) {
                $("li.menu").removeClass("navbar_active");
                $("li." + menu).addClass("navbar_active");
            }
        } 
        
    </script>
</head>
<body>
    <div id="header" class="header">
        <div class="title">
            游戏特权</div>
        <div class="search">
            <input type="text" class="searchtxt" placeholder="搜索..." name="name" onkeypress="enterkey()" />
        </div>
        <div class="clear">
        </div>
    </div>
    <script type="text/javascript">
        function enterkey() {
            if (event.keyCode == 13) {
                event.returnValue = false;
                var url = baseurl + "PhoneApp/Search?name=" + $(".searchtxt").val();
                loadPage(url, true);
            }
        }
    </script>
    <div id="wrapper">
        <div id="scroller">
            
<link href="http://s-33994.gotocdn.com/Content/themes/phoneapp/site.css" rel="stylesheet" type="text/css" />
<script src="http://s-33994.gotocdn.com/Scripts/site.js" type="text/javascript"></script>
<!--广告-->
<div id="wrapper2">
    <div id="wrapper2_contain">
        <ul>
                <li><a  onclick="loadUrl('PhoneApp/Advertise?id=72e23202-4a9b-4d36-b26f-ececb9cdfad4')" href="#" >
                        <img src="http://s-33994.gotocdn.com//upload_files/gui_ad_phone.jpg" />
                </a></li>
                <li><a  onclick="loadUrl('PhoneApp/Advertise?id=c6a095c0-eb80-4228-805b-d59d87a31832')" href="#" >
                        <img src="http://s-33994.gotocdn.com//upload_files/sxz_ad_phone.jpg" />
                </a></li>
                <li><a  onclick="loadUrl('PhoneApp/Advertise?id=30ecc846-337e-4a0d-b116-e76307b31681')" href="#" >
                        <img src="http://s-33994.gotocdn.com//upload_files/cjpp_ad_phone.jpg" />
                </a></li>
                <li><a  onclick="loadUrl('PhoneApp/Advertise?id=9791cdbf-1637-4629-af1f-c746d773869d')" href="#" >
                        <img src="http://s-33994.gotocdn.com//upload_files/cb_ad_phone.jpg" />
                </a></li>
            <div class="clear">
            </div>
        </ul>
    </div>
</div>
<script type="text/javascript">
    startWrapper2();
</script>
<!--广告-->
<ul class="listview">
    <!--游戏推荐-->
        <li><a onclick="loadUrl('PhoneApp/Game?id=3787ceb2-8b9b-442c-8e9b-0f2bf9c4cd6e')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/cjpp.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status get">
                            已领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        超级跑跑</h6>
                    <div class="gamelist_item_detail">
                        赛跑、攀藤、跳跃翻滚、游泳的竞速游戏
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=b1a30832-9fae-4aab-bcfc-18ad1f169de6')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/chaoge.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        朝歌</h6>
                    <div class="gamelist_item_detail">
                        根据《封神演义》开发的微端回合网游
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=541b06b1-f161-4967-8ce9-223629af016f')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/chibi.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        赤壁</h6>
                    <div class="gamelist_item_detail">
                        全新资料片“车战无双”
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=5a863f9c-4161-4bea-93e6-11715cf7dba3')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/cwxjl.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status get">
                            已领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        宠物小精灵</h6>
                    <div class="gamelist_item_detail">
                        清新可爱的日系漫画风格2D回合网游
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=6dae7210-9e32-4048-9112-fa8899e9c548')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/gmol.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        光明OL</h6>
                    <div class="gamelist_item_detail">
                        网罗东西方玄幻精华，游戏交友两不误
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=abdcb98f-6269-4842-b807-b649814dfc54')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/gui.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        鬼吹灯外传</h6>
                    <div class="gamelist_item_detail">
                        改编自《鬼吹灯》的大型横版格斗网游
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=020a4670-f66e-4430-8171-84e80eab078a')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/jgsj.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        极光世界</h6>
                    <div class="gamelist_item_detail">
                        以中国上古传奇为神话背景的精品巨著
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=e5a43a37-f2ae-40c0-9190-876a1baa3b15')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/jtzs.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        惊天战神</h6>
                    <div class="gamelist_item_detail">
                        真3D强动作型即时战斗网页游戏
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=80db7d7f-1d53-4830-8e17-4d1e0e2f08f7')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/jzwc.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        决战王城</h6>
                    <div class="gamelist_item_detail">
                        注重PK竞技的即时战斗网页游戏
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=1297b38b-b323-4730-8a80-6d7347c1c132')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/sxz.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        神仙传</h6>
                    <div class="gamelist_item_detail">
                        以中华上下五千年的神话传说为蓝本
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=116a5e54-9720-47ed-ac46-5c970d073749')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/sssg.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        盛世三国</h6>
                    <div class="gamelist_item_detail">
                        以经典三国题材为背景的大型2D写实类游戏
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=35a52a39-e2a4-4c81-90c6-1883af9e7b5f')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/xy3.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        西游III</h6>
                    <div class="gamelist_item_detail">
                        以《西游记》为背景的2.5D回合制游戏
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=c2fa177a-168b-4b53-8490-9477da180fd7')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/xcol.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        仙尘OL</h6>
                    <div class="gamelist_item_detail">
                        以《西游记》为背景的在线网络游戏
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=b20a2a09-0123-4342-b1f4-27bc7ded21b3')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/xxrz.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        小小忍者</h6>
                    <div class="gamelist_item_detail">
                        首创“一角色，多职业”的动漫主题网页游戏
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=e41b6d06-19ff-4053-ad11-4bdd5b9ce9db')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/xsj.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        新神界</h6>
                    <div class="gamelist_item_detail">
                        具有欧洲中世纪奇幻风格的ATB回合制MMORPG
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
        <li><a onclick="loadUrl('PhoneApp/Game?id=b3f9f39b-abcd-4676-b7ac-48e7eb3d4bdc')" href="#"  >
            <div class="gamelist_item">
                <div class="gamelist_item_left">
                    <img class="gamelist_item_img"  src="http://s-33994.gotocdn.com//upload_files/zbol.jpg" />
                </div>
                <div class="gamelist_item_right">
                        <div class="gamelist_item_status noget">
                            未领取</div>
                </div>
                <div class="gamelist_item_middle">
                    <h6 class="gamelist_item_name">
                        灾变OL</h6>
                    <div class="gamelist_item_detail">
                        流光装备、连击PK和规模宏大的战争系统
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </a></li>
    <!--游戏推荐-->
    <!--更多游戏-->
    <li><a href="#" onclick="loadUrl('PhoneApp/GameClassify')">
        <div class="gamelist_item">
            <div class="gamelist_item_more">
                更多游戏
            </div>
        </div>
    </a></li>
    <!--更多游戏-->
</ul>



        </div>
    </div>
    <div id="footer">
        <ul class="navbar">
            <li class="index menu navbar_active"><a href="#" class="index" onclick="loadUrl('PhoneApp/Index')">
                <div class="navbar_item_display">
                    <img class="navbar_item_icon" src="Resource/gift.png"></img>
                    <div class="navbar_item_name">
                        游戏推荐</div>
                </div>
            </a></li>
            <li class="newarea menu"><a href="#" class="newarea" onclick="loadUrl('PhoneApp/NewArea')">
                <div class="navbar_item_display">
                    <img class="navbar_item_icon" src="Resource/newarea.png"></img>
                    <div class="navbar_item_name">
                        新区资讯</div>
                </div>
            </a></li>
            <li class="gameclassify menu"><a href="#" class="gameclassify" onclick="loadUrl('PhoneApp/GameClassify')">
                <div class="navbar_item_display">
                    <img class="navbar_item_icon" src="Resource/grid.png"></img>
                    <div class="navbar_item_name">
                        游戏分类</div>
                </div>
            </a></li>
            <li class="mycode menu"><a href="#" class="mycode" onclick="loadUrl('PhoneApp/MyCode')">
                <div class="navbar_item_display">
                    <img class="navbar_item_icon" src="Resource/user.png"></img>
                    <div class="navbar_item_name">
                        我的特权</div>
            </a></li>
            <div class="clear">
            </div>
        </ul>
    </div>
</body>
</html>
